package com.pptv.mtbu.ottflow.domain;

import java.io.Serializable;
import java.util.*;


public class User
	extends Base 
	implements Serializable
{
	private static final long serialVersionUID = 48L;


	private String name;
	private String pass;
	private Date   createTime;
	private Role   role;

	

	public void setUserName(String name)
	{
		this.name = name;
	}
	public String getUserName()
	{
		return this.name;
	}


	public void setPassWord(String pass)
	{
		this.pass = pass;
	}
	public String getPassWord()
	{
		return this.pass;
	}


	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj != null &&
			obj.getClass() == User.class)
		{
			User user = (User)obj;
			return this.getUserName().equals(user.getUserName())
				&& this.getPassWord().equals(user.getPassWord());
		}
		return false;
	}
	public int hashCode()
	{
		return name.hashCode()
			+ pass.hashCode() * 17;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
    public Role getRole() {
        return role;
    }
    public void setRole(Role role) {
        this.role = role;
    }
}